//package com.anyou.mall.supply.controller;
//
//import java.util.List;
//import javax.servlet.http.HttpServletResponse;
//import org.springframework.security.access.prepost.PreAuthorize;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.PutMapping;
//import org.springframework.web.bind.annotation.DeleteMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//import com.anyou.common.annotation.Log;
//import com.anyou.common.core.controller.BaseController;
//import com.anyou.common.core.domain.ApiResult;
//import com.anyou.common.enums.BusinessType;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import com.anyou.mall.supply.domain.SupplyTime;
//import com.anyou.mall.supply.service.ISupplyTimeService;
//import com.anyou.common.utils.poi.ExcelUtil;
//import com.anyou.common.core.page.TableDataInfo;
//
///**
// * 补给配送时间Controller
// *
// * @author ruoyi
// * @date 2023-10-13
// */
//@Api(tags = "补给配送时间")
//@RestController
//@RequestMapping("/supply/time")
//public class SupplyTimeController extends BaseController
//{
//    @Autowired
//    private ISupplyTimeService supplyTimeService;
//
//    /**
//     * 查询补给配送时间列表
//     */
//    @ApiOperation("查询补给配送时间列表")
//    @PreAuthorize("@ss.hasPermi('supply:time:list')")
//    @GetMapping("/list")
//    public TableDataInfo<List<SupplyTime>> list(SupplyTime supplyTime)
//    {
//        startPage();
//        List<SupplyTime> list = supplyTimeService.selectSupplyTimeList(supplyTime);
//        return getDataTable(list);
//    }
//
//    /**
//     * 导出补给配送时间列表
//     */
//    @ApiOperation("导出补给配送时间列表")
//    @PreAuthorize("@ss.hasPermi('supply:time:export')")
//    @Log(title = "补给配送时间", businessType = BusinessType.EXPORT)
//    @PostMapping("/export")
//    public void export(HttpServletResponse response, SupplyTime supplyTime)
//    {
//        List<SupplyTime> list = supplyTimeService.selectSupplyTimeList(supplyTime);
//        ExcelUtil<SupplyTime> util = new ExcelUtil<SupplyTime>(SupplyTime.class);
//        util.exportExcel(response, list, "补给配送时间数据");
//    }
//
//    /**
//     * 获取补给配送时间详细信息
//     */
//    @ApiOperation("获取补给配送时间详细信息")
//    @PreAuthorize("@ss.hasPermi('supply:time:query')")
//    @GetMapping(value = "/{supplyTimeId}")
//    public ApiResult<SupplyTime> getInfo(@PathVariable("supplyTimeId") Long supplyTimeId)
//    {
//        return ApiResult.success(supplyTimeService.selectSupplyTimeBySupplyTimeId(supplyTimeId));
//    }
//
//    /**
//     * 新增补给配送时间
//     */
//    @ApiOperation("新增补给配送时间")
//    @PreAuthorize("@ss.hasPermi('supply:time:add')")
//    @Log(title = "补给配送时间", businessType = BusinessType.INSERT)
//    @PostMapping
//    public ApiResult add(@RequestBody SupplyTime supplyTime)
//    {
//        return ApiResult.success(supplyTimeService.insertSupplyTime(supplyTime));
//    }
//
//    /**
//     * 修改补给配送时间
//     */
//    @ApiOperation("修改补给配送时间")
//    @PreAuthorize("@ss.hasPermi('supply:time:edit')")
//    @Log(title = "补给配送时间", businessType = BusinessType.UPDATE)
//    @PutMapping
//    public ApiResult edit(@RequestBody SupplyTime supplyTime)
//    {
//        return ApiResult.success(supplyTimeService.updateSupplyTime(supplyTime));
//    }
//
//    /**
//     * 删除补给配送时间
//     */
//    @ApiOperation("删除补给配送时间")
//    @PreAuthorize("@ss.hasPermi('supply:time:remove')")
//    @Log(title = "补给配送时间", businessType = BusinessType.DELETE)
//    @DeleteMapping("/{supplyTimeIds}")
//    public ApiResult remove(@PathVariable Long[] supplyTimeIds)
//    {
//        return ApiResult.success(supplyTimeService.deleteSupplyTimeBySupplyTimeIds(supplyTimeIds));
//    }
//}
